Skip to content

Enable Gateway to Request Cache Asynchronously - #756

Open
bsofjan wants to merge 3 commits into
DataIntellectTech:masterfrom
bsofjan:enablegatewaytorequestcacheasync
Open

Enable Gateway to Request Cache Asynchronously#756
bsofjan wants to merge 3 commits into
DataIntellectTech:masterfrom
bsofjan:enablegatewaytorequestcacheasync

Conversation

@bsofjan

@bsofjan bsofjan commented Aug 6, 2026

Copy link
Copy Markdown

Enable Gateway to Request Cache Asynchonously as per Phase 3.1 of Anycache Project Plan.

@CJA18

CJA18 commented Aug 13, 2026

Copy link
Copy Markdown

I don't think you need this PR too, you can combine them into one here
https://github.com/DataIntellectTech/TorQ/pull/755/changes

You can also remove the file from this PR where you just have some placeholder code
https://github.com/DataIntellectTech/TorQ/pull/743/changes#diff-be5c3f83a3ca984622a3bdba850b138fe9358babca505e43756f164468af0f9b

Comment thread code/common/getter.q Outdated
Comment thread code/common/getter.q
Comment thread code/common/getter.q Outdated
@bsofjan bsofjan changed the title Enable Gateway to Request Cache Asynchonously Enable Gateway to Request Cache Asynchronously Aug 19, 2026
@bsofjan

bsofjan commented Aug 19, 2026

Copy link
Copy Markdown
Author

Hi Cormac, I have combined the "Enable Gateway to Read Cache" and "Enable Gateway to Request Cache Asynchronously" PRs into one PR here. I have also removed the getter.q file containing placeholder code from the "Add cacheConfig, setter process, getter script" PR. I have also addressed your other comments.

Comment thread code/common/getter.q
Comment thread code/common/getter.q Outdated
Comment thread code/common/getter.q Outdated
Comment thread code/common/getter.q Outdated
Comment thread code/common/getter.q Outdated
@bsofjan

bsofjan commented Sep 2, 2026

Copy link
Copy Markdown
Author

Hi Cormac, thank you for reviewing and your comments. I have uploaded a template cacheconfig.json file containing configurations for the Anycache system. The cachename and asyncprocessname is now part of the cacheconfig.json file so there is no need to pass them as parameters to functions.

Comment thread code/common/getter.q
getcachefromdisk:{[filepath] get hsym filepath}

// Get location of cache config and load it in.
cacheconfiglocation:.proc.getconfigfile["cacheconfig.json"];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a function of some sort - takes a config filename, if empty load the default

Comment thread config/cacheconfig.json
{
"cacherootdir": "opt/anycache",
"cachename": "MyFirstCache",
"asyncprocessname": "AsyncCache",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CamelCase - check other config files in TorQ, if they use CamelCase it's okay but if not then change to match the convention

@CJA18

CJA18 commented Sep 4, 2026

Copy link
Copy Markdown

We also need to have some detailed notes, documentation and testing proof in this PR and any other related PRs (this goes for any new features that are being added to TorQ). This can be added in a README.md file in the root directory of the AnyCache component

Comment thread code/common/getter.q
@@ -0,0 +1,28 @@
// Bootstrap script that will enable an existing process to load in cache getter functionalities.

\d .getter

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be .anycache.getter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants